package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

public class TrainEmployeeRequestBody {
    @Data
    public static class AddTrainRequestBody {
        private String name;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startTime;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date endTime;
        private String address;
        private Integer count;
        private String content;
        private Integer trainTypeId;
        private String trainer;
        private String trainDepartment;
    }

    @Data
    public static class UpdateTrainRequestBody {
        private Integer id;
        private String name;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date startTime;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date endTime;
        private String address;
        private Integer count;
        private String content;
        private Integer trainTypeId;
        private String trainer;
        private String trainDepartment;
    }

    @Data
    public static class AddTrainEmployeeRequestBody {
        private Integer trainId;
        private List<Integer> ids;
    }

    @Data
    public static class DeleteTrainEmployeeRequestBody {
        private Integer trainId;
        private List<Integer> ids;
    }
}
